<?php

require 'header.php';

?>
      <div class="middle">
		<div class="simple-container-left" id="page:main-container">
			<div class="container" id="page:container">
				<div class="main">
					<div class="content-container">
						<div class="content" id="content">
							<div class="content-header">
								<table class="grid-header" cellspacing="0" border="0" >
									<tbody>
										<tr>
											<td style=""><h3 class="icon-head head-customer">Loan Wizard</h3></td>
											<td class="a-right">
												<button type="button" class="scalable back" onclick="setLocation('loan.php')" style=""><span>Search</span></button>
											<!--
												<button type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Edit</span></button>
												<button type="button" class="scalable save" onclick="editForm.submit();" style=""><span>Add Payment</span></button>
											-->
                                                                                        </td>
										</tr>
									</tbody>
								</table>
							</div>
							<div id="messages"></div>

							<form name="form1" id="form1" action="add_coborrower_wizard.php" method="post">
							<div class="entry-edit">
								<h4 class="icon-head head-edit-form fieldset-legend">Co-Borrower Information</h4>

                                                                        <table width="100%" border="0" cellspacing="0">
                                                                         <!--
                                                                        <tr align="center">

                                                                            <td width="11%" style="background-color:#eeeeee"><span class="nobr"><a href="borrower_view.php" name="id" target="asc" class="sort-arrow-asc"><span class="sort-title">Borrower</span></a></span></td>
                                                                            <td width="11%" style="background-color:#FFFF99"><span class="nobr"><a href="co_borrower_view.php" name="id" target="asc" class="sort-arrow-asc"><span class="sort-title">Co-Borrower</span></a></span></td>
                                                                            <td width="15%" style="background-color:#FFFF99"><span class="nobr"><a href="business_view.php" name="id" target="asc" class="sort-arrow-asc"><span class="sort-title">Business</span></a></span></td>
                                                                            <td width="15" style="background-color:#FFFF99"><span class="nobr"><a href="collateral_view.php" name="id" target="asc" class="sort-arrow-asc"><span class="sort-title">Collateral</span></a></span></td>
                                                                            <td width="9%" style="background-color:#FFFF99"><span class="nobr"><a href="loan_view.php" name="id" target="asc" class="sort-arrow-asc"><span class="sort-title">Loan</span></a></span></td>
                                                                            <td width="9%" style="background-color:#FFFF99"><span class="nobr"><a href="notes_view.php" name="id" target="asc" class="sort-arrow-asc"><span class="sort-title">Notes</span></a></span></td>
                                                                            <td width="30%"></td>
                                                                        </tr>
                                                                       -->
									<table width="100%" cellspacing="10" border="0" style="background-color:#eeeeee" >

									<tbody>
								        <tr>
         							            <td>
         							            	<table width="100%" cellspacing="0" border="0">
										<tbody>
										<tr>
										    <td>
										    <table width="100%" cellspacing="5" border="0">
										    <tbody>
                                                                                           <tr>
                                                                                               <td width="50%">Use Existing Record</td>
                                                                                               <td width="50%"><input type="checkbox" name="enable_business_info" checked="checked" onclick="enable_fields()"> Enable</td>
                                                                                           </tr>
                                                                                           <tr>
                                                                                               <td>Co-Borrower ID</td>
                                                                                               <td>
                                                                                                   <select name="borrower_select" class="required-entry required-entry select" type="select">
										                           <option value="1">20080001</option>
		                                                                                           <option value="2">20080002</option>
										                           <option value="3">20080002</option>
												   </select>
                                                                                               </td>
                                                                                           </tr>
										           <tr>
										               <td>Co-Borrower ID <span class="required">*</span></td>
											       <td><em>autogenerate</em></td>
															</tr>
															<tr>
																<td>Last Name <span class="required">*</span></td>
																<td><input name="borrower_lastname" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
                                                                                                                        <tr>
																<td>First Name <span class="required">*</span></td>
																<td><input name="borrower_firstname" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Middle Name</td>
																<td><input name="borrower_middlename" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Address <span class="required">*</span></td>
																<td><textarea name="borrower_address" cols="50" rows="4"></textarea></td>
															</tr>
															<tr>
																<td>Barangay <span class="required">*</span></td>
																<td><input name="borrower_barangay" value="" class="required-entry required-entry input-text" type="text"></td>
              	                                                                                                        </tr>
															<tr>
																<td>City <span class="required">*</span></td>
																<td><input name="borrower_city" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Island <span class="required">*</span></td>
																<td><input name="borrower_island" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Phone <span class="required">*</span></td>
																<td><input name="borrower_phone" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Mobile </td>
																<td><input name="borrower_mobile" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Birthdate <span class="required">*</span></td>
																<td><input name="borrower_birthdate" value="" class="required-entry required-entry input-text" type="text"></td>
															</tr>
															<tr>
																<td>Gender <span class="required">*</span></td>
																<td>
																	<select name="borrower_gender" class="required-entry required-entry select" type="select">
																	<option value="1">Male</option>
																	<option value="2">Female</option>
																	</select>
																</td>
															</tr>
															<tr>
																<td>Civil Status <span class="required">*</span></td>
																<td>
																	<select name="borrower_civil_status" class="required-entry required-entry select" type="select">
																	<option value="1">Single</option>
																	<option value="2">Married</option>
																	<option value="3">Divorced</option>
																	<option value="4">Separated</option>
																	<option value="5">Widowed</option>
																	</select>
																</td>
															</tr>
																<tr>
																<td>Co-Borrower Status <span class="required">*</span></td>
																<td>
																	<select name="borrower_status" class="required-entry required-entry select" type="select">
																	<option value="1">Active</option>
																	<option value="2">Inactive</option>
																	</select>
																</td>
															</tr>

														</tbody>
													</table>

												</td>
												<td>
												<table width="100%" cellspacing="5"border="0">
														<tbody>
															<tr>
																<td align="center"><img src="img/no_photo.jpg" width="150" height="150" /></td>
															</tr>
															<tr>
																<td align="center"><input name="borrower_photo" value="" class="required-entry required-entry input-text" type="file"></td>
															</tr>
														</tbody>
													</table>

												</td>
											</tr>
										</tbody>
									</table>
	                                                                    </td>
	                                                                    </tr>
										</tbody>
									    <tr>
                                                                            <td>
                                                                            <div align="center">
									         <button type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Reset</span></button>
									         <button type="button" class="scalable save" onclick="window.location='add_business_wizard.php'" style=""><span>Next</span></button>


								            </div>
                                                                            </td>
                                                                            </tr>
									</table>
									&nbsp;
									<script type="text/javascript"><!--
									function enable_fields() {
										var bizForm = document.form1;
										var checked = !bizForm.enable_business_info.checked;
										var unchecked = bizForm.enable_business_info.checked;

										bizForm.borrower_select.disabled = checked;
										bizForm.borrower_lastname.disabled = unchecked;
										bizForm.borrower_firstname.disabled = unchecked;
										bizForm.borrower_middlename.disabled = unchecked;
										bizForm.borrower_address.disabled = unchecked;
										bizForm.borrower_barangay.disabled = unchecked;
										bizForm.borrower_city.disabled = unchecked;
										bizForm.borrower_island.disabled = unchecked;
										bizForm.borrower_phone.disabled = unchecked;
										bizForm.borrower_mobile.disabled = unchecked;
										bizForm.borrower_birthdate.disabled = unchecked;
										bizForm.borrower_gender.disabled = unchecked;
										bizForm.borrower_civil_status.disabled = unchecked;
										bizForm.borrower_status.disabled = unchecked;
										bizForm.borrower_photo.disabled = unchecked;

									}
									enable_fields();
									//-->
								</script>
								


							</div>


							</form>
						</div>
					</div>
					
					<div class="section-menu" id="page:left">
						<h3>Loan Center</h3>
						<ul id="loan_info_tabs" class="tabs">
							<li>
						        <a href="add_borrower_wizard.php" title="Loan" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div> Input Borrower</span>
						        </a>
						    </li>
						    <li>
						        <a href="add_coborrower_wizard.php" title="Loan" class="tab-item-link active">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div> Input Co-Borrower</span>
						        </a>
						    </li>
						</ul>
						<div class="bottom"></div>
					</div>
              	</div>
			</div>
		</div>
	</div>

<?php

require 'footer.php';

?>